#define JCHAR_DEBUG 1

/// Structure that manage jchar_dev data.
struct jchar_qset {
  void **data;
  struct jchar_qset *next;
};

/// Our device structure.
struct jchar_dev {
  /** pointer to the structure thath manage the device data. */
  struct jchar_qset *data;
  /** size of a memory area (a quantum) */
  int quantum;
  /** size of a quantum set or the array's lenght. */
  int qset;
  /** amount of data stored here */
  unsigned long size;
  /** used by jcharid and jcharpriv */
  unsigned int access_key;
  /** mutual exclusion semaphore*/
  struct semaphore sem;
  /** char device structure*/
  struct cdev cdev;
};

